//package com.lagou.config;
//
//import com.alibaba.cloud.nacos.NacosDiscoveryProperties;
//import com.alibaba.cloud.nacos.ribbon.ConditionalOnRibbonNacos;
//import com.alibaba.cloud.nacos.ribbon.NacosServerList;
//import com.netflix.client.config.IClientConfig;
//import com.netflix.loadbalancer.IRule;
//import com.netflix.loadbalancer.RandomRule;
//import com.netflix.loadbalancer.ServerList;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@ConditionalOnRibbonNacos
//public class RibbonConfiguration {
//    @Autowired
//    IClientConfig config;
//
//    @Bean
//    public IRule ribbonRule(IClientConfig config) {
//        //随机算法
//        return new RandomRule();
//    }
//
//}
